package avicit.bdp.dgs.metadata.dao;

import avicit.bdp.common.base.BaseDAO;
import avicit.bdp.common.dto.MetadataStateDto;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface MetadataStateDao extends BaseDAO<MetadataStateDto> {

  MetadataStateDto getLatestByDatasourceAndTable(
      @Param("dataSourceId") String dataSourceId, @Param("tableName") String tableName);

  int batchInsert(@Param("list") List<MetadataStateDto> list);
}
